home *** CD-ROM | disk | FTP | other *** search
/ Stone Design / Stone Design.iso / Stone_Friends / Wave / WavesWorld / Source / IBPalettes / WW3DKit / EveProc.m < prev    next >
Encoding:
Text File  |  1995-03-31  |  1018 b   |  30 lines

  1. // copyright 1993 Michael B. Johnson; some portions copyright 1994, MIT
  2. // see COPYRIGHT for reuse legalities
  3. //
  4.  
  5. // EveProcs are, to a degree, a generalization of an EveCommand.
  6. // Whereas an EveCommand represents a single, atomic object which
  7. // conforms to the WWRenderable protocol, an EveProc holds a *list* 
  8. // of such objects.  Also, the eve command that is based on is
  9. // actually an arbitrary tcl proc and its arguments.  Well, the
  10. // tcl proc actually can't be that arbitrary: it can't have any
  11. // calls to EveProc or EveCmd inside of it, and the only variable
  12. // traces that will be set up for it are the ones corresponding
  13. // the the proc's arguments - any global variables inside the 
  14. // EveProc will not be traced.
  15.  
  16. #import "EveProc.h"
  17. #import "WWEveParser.h"
  18. #import "Protocol_WWSample.h"
  19. #import "WWSampleList.h"
  20. #import "WWSample.h"
  21. #import "WWTCLKit.h"
  22. //#import "WWTCLClosedCmd.h"
  23.  
  24. @implementation EveProc
  25.  
  26.  
  27. - produceSampleFromCmd  {  return [eveParser evaluateEveProc:(char *)([cmd cmd])]; }
  28.  
  29. @end
  30.